# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-cmp
pkgver=0.0.0_git20220615
_commit=df6734aa018d6feb4d76ba6bda94b1aeac2b378a
pkgrel=0
pkgdesc="completion plugin for neovim"
url="https://github.com/hrsh7th/nvim-cmp"
arch="noarch !riscv64" # neovim
license="MIT"
subpackages="$pkgname-doc"
depends="neovim"
source="https://github.com/hrsh7th/nvim-cmp/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/nvim-cmp-$_commit"
options="!check" # requires vusted

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra lua autoload doc plugin utils "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

doc() {
	default_doc
	amove usr/share/nvim/site/doc
}

sha512sums="
982c1dd12727951a33bfa91e9f135299f630410155b357d2be6fcf794ce0a59bec2888d2790aa81a0ccf8b196c144bbfda8c04d29523775ff7bae93a035b1dc1  nvim-cmp-0.0.0_git20220615.tar.gz
"
